package cn.iocoder.yudao.module.base.controller.admin.productinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 产品信息新增/修改 Request VO")
@Data
public class ProductInfoSaveReqVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27561")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编号不能为空")
    private String code;

    @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "规格不能为空")
    private String spec;

    @Schema(description = "群组", requiredMode = Schema.RequiredMode.REQUIRED, example = "9514")
    @NotNull(message = "群组不能为空")
    private Long groupId;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "17880")
    @NotNull(message = "单位不能为空")
    private Long unitId;

    @Schema(description = "图片")
    private String image;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @Schema(description = "种类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "种类不能为空")
    private Integer category;

    @Schema(description = "管理类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "管理类型不能为空")
    private Integer manageType;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "备注", example = "随便")
    private String remark;

}